package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import com.zzyl.base.PageResponse;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Description: TODO
 * @ BelongsProject: zzyl
 * @ Author: G攀
 * @ CreateTime: 2024-08-25  14:53
 * @ Version: 1.0
 */
@Mapper
public interface NursingLevelMapper {

    /**
     * 获取所有的护理等级
     */
    List<NursingLevelVo> getAll();

    /**
     * 根据护理级别ID查询护理等级
     */
    NursingLevelVo getLevelById(Long id);

    /**
     * 根据护理ID修改护理等级
     */
    void update(NursingLevel nursingLevel);

    /**
     * 根据ID删除护理项目
     */
    @Delete("delete from nursing_level where id = #{id};")
    void delete(Long id);

    /**
     * 获取所有的护理等级信息
     *
     * @return
     */
    List<NursingLevel> getAllNursingLevel();

    /**
     * 添加护理等级信息
     *
     * @param nursingLevel
     * @return
     */
    void addNursingLevelInfo(NursingLevel nursingLevel);

    /**
     * 分页查询项目等级信息
     * @param name
     * @param status
     * @return
     */
    Page<NursingLevelVo> getNursingLevelByPage(@Param("name") String name, @Param("status") Integer status);
}
